<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>数据字典列表</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<script type="text/javascript" src="<%=request.getContextPath() %>/resources/js/jquery-1.9.1.min.js"></script>
  </head>
  
  <body>
  	<input id="add" value="新增"  type="button"  onclick="window.location.href='<%=request.getContextPath() %>/baseinfoKind!toAddBaseinfoKind.action'"  />
   	<table border="1px solid red;">
   		<tr>
   			<td>序号</td>
   			<td>类别编码</td>
   			<td>类别名称</td>
   			<td>级别</td>
   			<td>排序</td>
   			<td>标记</td>
   			<td>操作</td>
   		</tr>
   		<c:forEach  var="info" items="${requestScope.resultMap.list}"  varStatus="xh">
     		<tr>
     			<td>${xh.count+requestScope.xh}</td>
     			<td>${info.classid}</td>
     			<td>${info.classname}</td>
     			<td>
	     			<c:choose>
	     				<c:when test="${info.classlv==0}">全系统</c:when>
	     				<c:when test="${info.classlv==1}">子系统</c:when>
	     				<c:when test="${info.classlv==2}">单位</c:when>
	     				<c:otherwise>用户 </c:otherwise>
	     			</c:choose>
     			</td>
     			<td><input id="orderid" name="orderid"  type="text" class="inputxt"  ignore="ignore" datatype="n" errormsg="请输入数字排序" value="${info.orderid}" onchange="changeOrder('${info.classid}',${info.classlv},this.value,'<%=request.getContextPath()%>/baseinfoKind!changeOrderid.action','<%=request.getContextPath() %>/baseinfoKind!baseinfoKindList.action');"/></td>
     			<td>
     				<c:choose>
     					<c:when test="${info.flag==0}">无期限</c:when>
	     				<c:when test="${info.flag==1}">有期限</c:when>
	     				<c:otherwise>无状态 </c:otherwise>
     				</c:choose>
     			</td>
     			<td>
     				<input  type="button" value="修改"  onclick="to('<%=request.getContextPath() %>/baseinfoKind!toUpdateBaseinfoKind.action?classid=${info.classid}&&classlv=${info.classlv}')">
     				<input  type="button" value="删除"  onclick="detele('是否删除该条数据？','<%=request.getContextPath() %>/baseinfoKind!delBaseinfoKind.action?classid=${info.classid}&&classlv=${info.classlv}','<%=request.getContextPath() %>/baseinfoKind!baseinfoKindList.action');"> 
     			</td>
     			
     		</tr>
     	</c:forEach>
   	</table>
   	<script type="text/javascript" src="<%=request.getContextPath() %>/resources/js/common.js"></script>
  </body>
</html>
